﻿using System;
using SqlSugar;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// YTBOrder一体板订单取消变更主表
    /// </summary>
    [SugarTable("YTBOrder")]
    public class YTBOrder
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid ID { get; set; }

        /// <summary>
        /// 实例Id
        /// </summary>
        public string InstanceId { get; set; }

        /// <summary>
        /// 流程主题
        /// </summary>
        public string ProcessTopic { get; set; }

        /// <summary>
        /// 发起时间
        /// </summary>
        public DateTime? ProcessStartTime { get; set; }

        /// <summary>
        /// 发起人
        /// </summary>
        public Guid? ProcessStartUserId { get; set; }

        /// <summary>
        /// 发起人名称
        /// </summary>
        public string ProcessStartUserName { get; set; }

        /// <summary>
        /// 当前步骤名称
        /// </summary>
        public string CurrentStepName { get; set; }

        /// <summary>
        /// 流程是否结束
        /// </summary>
        public bool? IsEnd { get; set; }

        /// <summary>
        /// 商机号guid
        /// </summary>
        public string Sjhguid { get; set; }

        /// <summary>
        /// 商机号objid
        /// </summary>
        public string ProjectCode { get; set; }

        /// <summary>
        /// 项目名称(商机号)
        /// </summary>
        public string ProjectName { get; set; }

        /// <summary>
        /// 销售大区
        /// </summary>
        public string Salearea { get; set; }

        /// <summary>
        /// 销售员名称
        /// </summary>
        public string Salername { get; set; }

        /// <summary>
        /// 客户编码
        /// </summary>
        public string Customercode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string Customername { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string Ordernumber { get; set; }

        /// <summary>
        /// 生产工厂
        /// </summary>
        public string Factory { get; set; }

        /// <summary>
        /// 生产工厂名称
        /// </summary>
        public string Factoryname { get; set; }

        /// <summary>
        /// 订单取消原因分类
        /// </summary>
        public string Ddqxreasontype { get; set; }

        /// <summary>
        /// 订单取消原因分类名称
        /// </summary>
        public string Ddqxreasontypename { get; set; }

        /// <summary>
        /// 订单取消原因
        /// </summary>
        public string Ddcancelreason { get; set; }

        /// <summary>
        /// 申请取消数量
        /// </summary>
        public string Sqqxtotal { get; set; }

        /// <summary>
        /// 初步确认处理方案
        /// </summary>
        public string Cbqrhandleway { get; set; }

        /// <summary>
        /// 是否产生额外费用
        /// </summary>
        public string Sfcsextraprice { get; set; }

        /// <summary>
        /// 费用承担方
        /// </summary>
        public string Costbearingparty { get; set; }

        /// <summary>
        /// 成本中心
        /// </summary>
        public string Costcenter { get; set; }

        /// <summary>
        /// 结案反馈
        /// </summary>
        public string Closingfeedback { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public string Price { get; set; }

        /// <summary>
        /// 抄送人
        /// </summary>
        public string YTBccuser { get; set; }
    }
}